package com.jiang.vo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;

/**
 * Worker entity. @author MyEclipse Persistence Tools
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "worker", catalog = "mldn")
@Inheritance(strategy = InheritanceType.JOINED)
public class Worker extends Member implements java.io.Serializable {

	private String company;
	private Double salary;

	// Constructors

	/** default constructor */
	public Worker() {
	}

	@Column(name = "company", length = 50)

	public String getCompany() {
		return this.company;
	}

	public void setCompany(String company) {
		this.company = company;
	}

	@Column(name = "salary", precision = 22, scale = 0)

	public Double getSalary() {
		return this.salary;
	}

	public void setSalary(Double salary) {
		this.salary = salary;
	}

}